package com.ydh.company.controller;

import com.ydh.company.dto.ResponseData;
import com.ydh.company.dto.ResultData;
import com.ydh.company.flag.PurchaseOrderFlag;
import com.ydh.company.pojo.*;
import com.ydh.company.pojo.Condition;
import com.ydh.company.pojo.Goods;
import com.ydh.company.pojo.GoodsType;
import com.ydh.company.utils.UUIDUtil;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import javax.validation.Valid;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;

import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import sun.plugin.util.UIUtil;


/**
 * @Author:wkl
 * @Date: 2020/4/30 16:48
 * @Version 0.0.1-SNAPSHOT
 */

@RestController
@RequestMapping("goods")
@Api(value = "商品信息管理接口",tags = "商品信息管理接口API")
@SuppressWarnings("all")
public class GoodsInfoController {

    @PostMapping("/selectAllGoodsCounts")
    @ApiOperation(value = "查询商品总数接口", notes = "查询数据总条数", httpMethod = "POST", response = ResponseData.class)
    public ResultData selectAllGoodsCounts(){

        return ResponseData.success(1);
    }

    @PostMapping("/selectCurrentPageGoods")
    @ApiOperation(value = "查询当前页面商品接口", notes = "查询当前页面的商品", httpMethod = "POST", response = ResponseData.class)
    public ResultData selectCurrentPageGoods(
            @RequestBody @ApiParam(name = "condition", value = "前端传递当前页码与每页显示商品数量", required = true) Condition condition){
        List<Goods> goodsList = new ArrayList<>();
        Goods goods = new Goods();
        goods.setGoodsId("9f5adfb94c1f49ad9c5a894401259e9e");
        goods.setGoodsName("哇哈哈 每瓶200ml");
        goods.setGoodsOrderPrice(1.75);
        goods.setGoodsMarketPrice(2.00);
        goods.setGoodsImgId("45b9a777c5eb4bfc966599f38bea92c3");
        goods.setGoodsTypeId("9272fffd49234f29a739b69104949538");
        goods.setGoodsUnitId("aeac58fd00ea4d4483a18ecc69476518");
        goods.setReferenceCostPrice(1.50);
        goods.setInventoryCost(0.01);
        goods.setPurchaseCost(1.30);
        goods.setGoodsDesc("好喝的酸甜饮品");
        goods.setGoodsSpecifications("500ml/瓶");

        goodsList.add(goods);
        return ResponseData.success(goodsList);

    }

    @ResponseBody
    @PostMapping("/selectAllStockCounts")
    @ApiOperation(value = "查询库存数据总条数接口", notes = "查询库存数据总条数", httpMethod = "POST", response = ResponseData.class)
    public ResultData selectAllStockCounts(@RequestBody @ApiParam(name ="condition", value = "商品分类/仓库/输入框输入值等查询条件,全查时传空值，下拉框的key值为selectValue,输入框的key值为inputValue",
            required = true) Condition Condition){

        return ResponseData.success(1);
    }

    @ResponseBody
    @PostMapping("/selectAllStock")
    @ApiOperation(value = "查询全部库存接口", notes = "查询库存全部数据", httpMethod = "POST", response = ResponseData.class)
    public ResultData  selectAllStock(@RequestBody @ApiParam(name = "condition", value = "前端传递当前页码与每页显示商品数量，当前页码的key值为currentPage，页面大小的key值为perSize", required = true) Condition condition){
        List<Object> list = new ArrayList<>();
        Stock stock=new Stock();
        Goods goods=new Goods();
        Repository repository = new Repository();
        goods.setGoodsId("1");
        goods.setGoodsName("虎王坦克");;
        goods.setGoodsUnitId("1");
        GoodsUnit goodsUnit=new GoodsUnit();
        goodsUnit.setGoodsUnitId("1");
        goodsUnit.setGoodsUnitName("个");
        goods.setGoodsUnit(goodsUnit);
        goods.setGoodsSpecifications("8*8");
        repository.setRepositoryName("库1");
        repository.setFlag(1);
        repository.setRepositoryName("beijing");
        repository.setRepositoryId("1");
        repository.setRepositoryStatus(1);
        stock.setStockId("1");
        stock.setStockMax( 500L);
        stock.setStockMin( 10L);
        stock.setAvailableStockNumber( 234L);
        stock.setRepository(repository);
        stock.setGoodsId("1");
stock.setGoods(goods);
stock.setLoadNumber( 23L);
stock.setPreOrderNumber( 35L);
stock.setRepositoryId("1");
stock.setStockNumber( 211L);
list.add(stock);
        return ResponseData.success("success",list);
    }

    @ResponseBody
    @PostMapping("/selectStockByCondition")
    @ApiOperation(value = "条件查询库存接口", notes = "根据商品分类/仓库/输入框输入值等条件查询库存数据", httpMethod = "POST", response = ResponseData.class)
    public ResultData selectStockByCondition(@RequestBody @ApiParam(name ="condition", value = "前端传递当前页码与每页显示商品数量，当前页码的key值为currentPage，页面大小的key值为perSize," +
            "商品分类/仓库/输入框输入值等查询条件，下拉框的key值为selectValue,输入框的key值为inputValue",
            required = true) Condition Condition){
        List<Object> list = new ArrayList<>();
        Stock stock=new Stock();
        Goods goods=new Goods();
        Repository repository = new Repository();
        goods.setGoodsId("1");
        goods.setGoodsName("虎王坦克");
        goods.setGoodsDesc("重型坦克");
        goods.setGoodsMarketPrice((double) 34);
        goods.setGoodsOrderPrice((double) 345);
        goods.setGoodsTypeId("1");
        GoodsType goodsType= new GoodsType();
        goodsType.setGoodsTypeId("1");
        goodsType.setGoodsTypeName("tank");
        goods.setGoodsType(goodsType);
        goods.setGoodsUnitId("1");
        GoodsUnit goodsUnit=new GoodsUnit();
        goodsUnit.setGoodsUnitId("1");
        goodsUnit.setGoodsUnitName("个");
        goods.setGoodsUnit(goodsUnit);
        goods.setGoodsSpecifications("8*8");
        goods.setInventoryCost((double) 122);
        goods.setPurchaseCost((double) 1234);
        goods.setReferenceCostPrice((double) 3552);
        repository.setRepositoryName("库1");
        repository.setFlag(1);
        repository.setRepositoryName("beijing");
        repository.setRepositoryId("1");
        repository.setRepositoryStatus(1);
        stock.setStockId("1");
        stock.setStockMax( 500L);
        stock.setStockMin( 10L);
        stock.setAvailableStockNumber( 234L);
        stock.setRepository(repository);
        stock.setGoods(goods);
        stock.setLoadNumber( 23L);
        stock.setPreOrderNumber( 35L);
        stock.setRepositoryId("1");
        stock.setStockNumber( 211L);
        list.add(stock);
        return ResponseData.success("success",list);
    }

    @ResponseBody
    @PostMapping("/updateStock")
    @ApiOperation(value = "修改库存的上下限接口", notes = "根据库存id修改库存的上下限", httpMethod = "POST", response = ResponseData.class)
    public ResultData updateStock(@RequestBody @ApiParam(name ="stock", value = "根据库存id修改库存的上下限的值，上限key值为stock_max、下限key值为stock_max、根据库存id的key值stock_id",
            required = true) Stock stock){

        return ResponseData.success("success");
    }

    @ResponseBody
    @PostMapping("/selectWarehousingOutRecordById")
    @ApiOperation(value = "查询库存明细接口", notes = "根据商品id查询库存明细", httpMethod = "POST", response = ResponseData.class)
    public ResultData selectWarehousingOutRecordById(@RequestBody @ApiParam(name ="stock", value = "key值为goods_id",
                                      required = true) Stock stock,
    @ApiParam(name = "condition", value = "前端传递当前页码与每页显示商品数量当前页码的key值为currentPage，页面大小的key值为perSize", required = true) Condition condition){
     WarehousingOutRecordMain warehousingOutRecordMain =
             new WarehousingOutRecordMain();
        Goods goods=new Goods();
        goods.setGoodsId("1");
        goods.setGoodsName("虎王坦克");
        goods.setGoodsSpecifications("8*8");
        goods.setGoodsUnitId("1");
        GoodsUnit goodsUnit=new GoodsUnit();
        goodsUnit.setGoodsUnitId("1");
        goodsUnit.setGoodsUnitName("个");
        goods.setGoodsUnit(goodsUnit);
        WarehousingOutRecordDetail warehousingOutRecordDetail = new WarehousingOutRecordDetail();
        warehousingOutRecordDetail.setGoods(goods);
        warehousingOutRecordDetail.setGoodsId("1");
        List<WarehousingOutRecordDetail> list1=new ArrayList<>();
        list1.add(warehousingOutRecordDetail);
     warehousingOutRecordMain.setList(list1);
     warehousingOutRecordMain.setRepositoryId("1");
        Repository repository = new Repository();
        repository.setRepositoryName("beijing");
        repository.setRepositoryId("1");
        repository.setRepositoryStatus(1);
        stock.setStockNumber(34L);
        warehousingOutRecordMain.setRepository(repository);
        List<Object> list =new ArrayList<>();
        list.add(warehousingOutRecordMain);
        return ResponseData.success("success",list);
    }

    @ResponseBody
    @PostMapping("/selectWarehousingOutRecordByCondition")
    @ApiOperation(value = "条件查询库存明细接口", notes = "根据下拉框选择或输入的条件查询库存明细", httpMethod = "POST", response = ResponseData.class)
    public ResultData selectWarehousingOutRecordByCondition(@RequestBody @ApiParam(name ="stock", value = "商品id,goods_id",
            required = true) Stock stock,
                                             @ApiParam(name = "condition", value = "前端传递当前页码与每页显示商品数量,条件查询的条件，" +
                                                     "比如商品分类/仓库/日期/输入框输入值,当前页码的key值为currentPage，页面大小的key值为perSize" +
                                                     "下拉框的key值为selectValue,输入框的key值为inputValue", required = true) Condition condition){

        WarehousingOutRecordMain warehousingOutRecordMain =
                new WarehousingOutRecordMain();
        Goods goods=new Goods();

        goods.setGoodsId("1");
        goods.setGoodsName("虎王坦克");
        goods.setGoodsDesc("重型坦克");
        goods.setGoodsMarketPrice((double) 34);
        goods.setGoodsOrderPrice((double) 345);
        goods.setGoodsUnitId("1");
        GoodsUnit goodsUnit=new GoodsUnit();
        goodsUnit.setGoodsUnitId("1");
        goodsUnit.setGoodsUnitName("个");
        goods.setGoodsUnit(goodsUnit);
        WarehousingOutRecordDetail warehousingOutRecordDetail = new WarehousingOutRecordDetail();
        warehousingOutRecordDetail.setGoods(goods);
        warehousingOutRecordDetail.setGoodsId("1");
        warehousingOutRecordDetail.setStockInOut(12);
        List<WarehousingOutRecordDetail> list1=new ArrayList<>();
        list1.add(warehousingOutRecordDetail);
        warehousingOutRecordMain.setList(list1);
        warehousingOutRecordMain.setRepositoryId("1");
        Repository repository = new Repository();
        repository.setRepositoryName("beijing");
        repository.setRepositoryId("1");
        repository.setRepositoryStatus(1);

        warehousingOutRecordMain.setRepository(repository);
        List<Object> list =new ArrayList<>();
        list.add(warehousingOutRecordMain);
        return ResponseData.success("success",list);
    }

    @ResponseBody
    @PostMapping("/selectWarehousingOutRecordDetail")
    @ApiOperation(value = "在库存操作里的查询出入库记录接口", notes = "在库存操作里，根据出入库记录主表id查询出入库记录", httpMethod = "POST", response = ResponseData.class)
    public ResultData selectWarehousingOutRecordDetail(@RequestBody @ApiParam(name ="warehousingOutRecord", value = "出入库记录主表id，key值为warehousingRecordMainId",
            required = true) WarehousingOutRecordMain warehousingOutRecordMain){
                 return ResponseData.success("success");
    }
    @ResponseBody
    @PostMapping("/selectAllWarehousingRecordCounts")
    @ApiOperation(value = "查询入库记录数据总条数接口", notes = "查询入库记录数据总条数", httpMethod = "POST", response = ResponseData.class)
    public ResultData selectAllWarehousingRecordCounts(@RequestBody @ApiParam(name ="condition", value = "仓库/入库类型/时间/输入的单号等查询条件，全查时可传空值，" +
            "下拉框的key值为selectValue,输入框的key值为inputValue",
            required = true) Condition Condition){

        return ResponseData.success(1);
    }

    @ResponseBody
    @PostMapping("/selectAllWarehousingRecord")
    @ApiOperation(value = "查询所有入库记录接口", notes = "查询所有入库记录", httpMethod = "POST", response = ResponseData.class)
    public ResultData  selectAllWarehousingRecord(@RequestBody @ApiParam(name = "condition", value = "前端传递当前页码与每页显示商品数量，当前页码的key值为currentPage，页面大小的key值为perSize", required = true) Condition condition){
        WarehousingOutRecordMain warehousingOutRecordMain =
                new WarehousingOutRecordMain();
        List<Object> list = new ArrayList<>();
        warehousingOutRecordMain.setDate(null);
        warehousingOutRecordMain.setRepositoryId("1");
        Repository repository = new Repository();
        repository.setRepositoryName("beijing");
        repository.setRepositoryId("1");
        repository.setRepositoryStatus(1);
        warehousingOutRecordMain.setRepository(repository);
        warehousingOutRecordMain.setStockInOutType("采购入库");
        warehousingOutRecordMain.setCreator("阿梅");
        list.add(warehousingOutRecordMain);
        return ResponseData.success(list);
    }

    @ResponseBody
    @PostMapping("/selectWarehousingRecordByCondition")
    @ApiOperation(value = "条件查询入库记录接口", notes = "  根据下拉框或输入的值查询，比如仓库/入库类型/时间/输入的单号", httpMethod = "POST", response = ResponseData.class)
    public ResultData  selectWarehousingRecordByCondition(@RequestBody @ApiParam(name ="condition", value = "前端传递当前页码与每页显示商品数量，当前页码的key值为currentPage，页面大小的key值为perSize，" +
            "仓库/入库类型/时间/输入的单号等查询条件，下拉框的key值为selectValue,输入框的key值为inputValue",
            required = true) Condition Condition){
        List<Object> list = new ArrayList<>();
        WarehousingOutRecordMain warehousingOutRecordMain =
                new WarehousingOutRecordMain();
        warehousingOutRecordMain.setDate(null);
        warehousingOutRecordMain.setRepositoryId("1");
        Repository repository = new Repository();
        repository.setRepositoryName("beijing");
        repository.setRepositoryId("1");
        repository.setRepositoryStatus(1);
        warehousingOutRecordMain.setRepository(repository);
        warehousingOutRecordMain.setStockInOutType("采购入库");
        warehousingOutRecordMain.setCreator("阿梅");
        list.add(warehousingOutRecordMain);
        return ResponseData.success(list);
    }

    @ResponseBody
    @PostMapping("/addWarehousingRecord")
    @ApiOperation(value = "新增入库记录接口", notes = "新增入库记录", httpMethod = "POST", response = ResponseData.class)
    public ResultData  addWarehousingRecord(@RequestBody @ApiParam(name ="warehousingOutRecord", value = "key值为入库记录表相关数据的属性名",
            required = true) WarehousingOutRecordMain warehousingOutRecordMain){

        return ResponseData.success(null);
    }

    @ResponseBody
    @PostMapping("/selectWarehousingRecordDetailById")
    @ApiOperation(value = "查询入库记录明细接口", notes = "查询入库记录明细", httpMethod = "POST", response = ResponseData.class)
    public ResultData   selectWarehousingRecordDetailById(@RequestBody @ApiParam(name ="warehousingOutRecord", value = "相关数据的入库记录主表id，key值为warehousingRecordMainId",
            required = true) WarehousingOutRecordMain warehousingOutRecordMain){

        warehousingOutRecordMain.setDate(null);
        warehousingOutRecordMain.setRepositoryId("1");
        Repository repository = new Repository();
        repository.setRepositoryName("beijing");
        repository.setRepositoryId("1");
        repository.setRepositoryStatus(1);
        warehousingOutRecordMain.setRepository(repository);
        Goods goods=new Goods();

        goods.setGoodsId("1");
        goods.setGoodsName("虎王坦克");
        goods.setGoodsDesc("重型坦克");
        goods.setGoodsMarketPrice((double) 34);
        goods.setGoodsOrderPrice((double) 345);

        goods.setGoodsUnitId("1");
        GoodsUnit goodsUnit=new GoodsUnit();
        goodsUnit.setGoodsUnitId("1");
        goodsUnit.setGoodsUnitName("个");
        goods.setGoodsUnit(goodsUnit);
        WarehousingOutRecordDetail warehousingOutRecordDetail =
                new WarehousingOutRecordDetail();
        warehousingOutRecordDetail.setGoodsId("1");
        warehousingOutRecordDetail.setGoods(goods);
        warehousingOutRecordDetail.setStockInOut(12);
        warehousingOutRecordDetail.setReceiptOutRemarks("fdf");
        List<WarehousingOutRecordDetail> list =new ArrayList<>();
        list.add(warehousingOutRecordDetail);
        warehousingOutRecordMain.setList(list);
        warehousingOutRecordMain.setCreator("阿梅");
        warehousingOutRecordMain.setHandledBy("fdf");
        warehousingOutRecordMain.setHandledBy("FDF");
        warehousingOutRecordMain.setDate(null);
        return ResponseData.success(warehousingOutRecordMain);
    }

    @ResponseBody
    @PostMapping("/selectAllCommodityDeliveryRecordCounts")
    @ApiOperation(value = "查询商品出库记录数据总条数接口", notes = "查询商品出库记录数据总条数", httpMethod = "POST", response = ResponseData.class)
    public ResultData selectAllCommodityDeliveryRecordCounts(@RequestBody @ApiParam(name ="condition", value = "仓库/入库类型/时间/输入的单号等查询条件，全查时可传空值，下拉框的key值为selectValue,输入框的key值为inputValue",
            required = true) Condition Condition){

        return ResponseData.success(1);
    }


    @ResponseBody
    @PostMapping("/selectAllCommodityDeliveryRecord")
    @ApiOperation(value = "查询全部出库记录接口", notes = "查询所有出库记录", httpMethod = "POST", response = ResponseData.class)
    public ResultData  selectAllCommodityDeliveryRecord(@ApiParam(name = "condition", value = "前端传递当前页码与每页显示商品数量，当前页码的key值为currentPage，页面大小的key值为perSize", required = true) Condition condition){
        List<Object> list = new ArrayList<>();
        WarehousingOutRecordMain warehousingOutRecordMain =
                new WarehousingOutRecordMain();
        warehousingOutRecordMain.setWarehousingRecordMainId("2");
        warehousingOutRecordMain.setDate(null);
        warehousingOutRecordMain.setRepositoryId("1");
        Repository repository = new Repository();
        repository.setRepositoryName("beijing");
        repository.setRepositoryId("1");
        repository.setRepositoryStatus( 1);
        warehousingOutRecordMain.setRepository(repository);
        warehousingOutRecordMain.setStockInOutType("退货出库");
        warehousingOutRecordMain.setCreator("阿梅");
        list.add(warehousingOutRecordMain);
        return ResponseData.success(list);
    }

    @ResponseBody
    @PostMapping("/selectCommodityDeliveryRecordDetailById")
    @ApiOperation(value = "查询出库记录明细接口", notes = "查询出库记录明细", httpMethod = "POST", response = ResponseData.class)
    public ResultData  selectCommodityDeliveryRecordDetailById(@RequestBody @ApiParam(name ="warehousingOutRecord", value = "相关数据的入库记录表id，key值为warehousingRecordMainId",
            required = true) WarehousingOutRecordMain warehousingOutRecordMain){

        warehousingOutRecordMain.setWarehousingRecordMainId("2");
        warehousingOutRecordMain.setDate(null);
        warehousingOutRecordMain.setRepositoryId("1");
        Repository repository = new Repository();
        repository.setRepositoryName("beijing");
        repository.setRepositoryId("1");
        repository.setRepositoryStatus(1);
        warehousingOutRecordMain.setRepository(repository);
        Goods goods=new Goods();

        goods.setGoodsId("1");
        goods.setGoodsName("虎王坦克");
        goods.setGoodsDesc("重型坦克");
        goods.setGoodsMarketPrice((double) 34);
        goods.setGoodsOrderPrice((double) 345);

        goods.setGoodsUnitId("1");
        GoodsUnit goodsUnit=new GoodsUnit();
        goodsUnit.setGoodsUnitId("1");
        goodsUnit.setGoodsUnitName("个");
        goods.setGoodsUnit(goodsUnit);
        WarehousingOutRecordDetail warehousingOutRecordDetail =
                new WarehousingOutRecordDetail();
        warehousingOutRecordDetail.setGoodsId("1");
        warehousingOutRecordDetail.setGoods(goods);
        warehousingOutRecordDetail.setStockInOut(12);
        warehousingOutRecordDetail.setReceiptOutRemarks("fdf");
        List<WarehousingOutRecordDetail> list =new ArrayList<>();
        list.add(warehousingOutRecordDetail);
        warehousingOutRecordMain.setList(list);
        warehousingOutRecordMain.setCreator("阿梅");
        warehousingOutRecordMain.setHandledBy("fdf");

        warehousingOutRecordMain.setHandledBy("FDF");
        warehousingOutRecordMain.setDate(null);
        return ResponseData.success(warehousingOutRecordMain);
    }

    @ResponseBody
    @PostMapping("/addCommodityDeliveryRecord")
    @ApiOperation(value = "新增出库记录接口", notes = "新增出库记录", httpMethod = "POST", response = ResponseData.class)
    public ResultData   addCommodityDeliveryRecord(@RequestBody @ApiParam(name ="warehousingOutRecord", value = "出库表相关数据",
            required = true) WarehousingOutRecordMain warehousingOutRecordMain){
        return ResponseData.success("success");
    }

    @ResponseBody
    @PostMapping("/selectCommodityDeliveryRecordByCondition")
    @ApiOperation(value = "条件查询出库记录接口", notes = "根据下拉框或输入的值查询，比如仓库/入库类型/时间/输入的单号", httpMethod = "POST", response = ResponseData.class)
    public ResultData  selectCommodityDeliveryRecordByCondition(@RequestBody @ApiParam(name ="condition", value = "前端传递当前页码与每页显示商品数量，当前页码的key值为currentPage，页面大小的key值为perSize，" +
            "仓库/入库类型/时间/输入的单号等查询条件，下拉框的key值为selectValue,输入框的key值为inputValue，",
            required = true) Condition Condition){
        List<Object> list = new ArrayList<>();
        WarehousingOutRecordMain warehousingOutRecordMain =
                new WarehousingOutRecordMain();
        warehousingOutRecordMain.setWarehousingRecordMainId("2");
        warehousingOutRecordMain.setDate(null);
        warehousingOutRecordMain.setRepositoryId("1");
        Repository repository = new Repository();
        repository.setRepositoryName("beijing");
        repository.setRepositoryId("1");
        repository.setRepositoryStatus(1);
        warehousingOutRecordMain.setRepository(repository);
        warehousingOutRecordMain.setStockInOutType("退货出库");
        warehousingOutRecordMain.setCreator("阿梅");
        list.add(warehousingOutRecordMain);
        return ResponseData.success(list);

    }


    @ResponseBody
    @PostMapping("/purchaseOrderWarehousingRecordPage")
    @ApiOperation(value = "进入入库页面接口", notes = "进入入库页面", httpMethod = "POST", response = ResponseData.class)
    public ResultData purchaseOrderWarehousingRecordPage(@Validated(PurchaseOrderFlag.class) @RequestBody @ApiParam(name ="purchaseOrderMain", value = "相关数据的入库记录主表id，key值为warehousingRecordMainId",
            required = true) PurchaseOrderMain purchaseOrderMain){
 WarehousingOutRecordMain warehousingOutRecordMain = new WarehousingOutRecordMain();

        warehousingOutRecordMain.setRepositoryId("1");
        Repository repository = new Repository();
        repository.setRepositoryName("beijing");
        repository.setRepositoryId("1");
        repository.setRepositoryStatus(1);
        warehousingOutRecordMain.setRepository(repository);
        Goods goods=new Goods();

        goods.setGoodsId("1");
        goods.setGoodsName("虎王坦克");
        goods.setGoodsDesc("重型坦克");
        goods.setGoodsMarketPrice((double) 34);
        goods.setGoodsOrderPrice((double) 345);

        goods.setGoodsUnitId("1");
        GoodsUnit goodsUnit=new GoodsUnit();
        goodsUnit.setGoodsUnitId("1");
        goodsUnit.setGoodsUnitName("个");
        goods.setGoodsUnit(goodsUnit);
        WarehousingOutRecordDetail warehousingOutRecordDetail =
                new WarehousingOutRecordDetail();
        warehousingOutRecordDetail.setGoodsId("1");
        warehousingOutRecordDetail.setGoods(goods);
        warehousingOutRecordDetail.setStockInOut(12);
        warehousingOutRecordDetail.setReceiptOutRemarks("fdf");
        List<WarehousingOutRecordDetail> list =new ArrayList<>();
        list.add(warehousingOutRecordDetail);
        warehousingOutRecordMain.setList(list);
        warehousingOutRecordMain.setCreator("阿梅");
        warehousingOutRecordMain.setHandledBy("fdf");
        warehousingOutRecordMain.setHandledBy("FDF");
        warehousingOutRecordMain.setDate(null);
        return ResponseData.success(warehousingOutRecordMain);
    }


    @ResponseBody
    @PostMapping("/selectAllPurchaseOrderCounts")
    @ApiOperation(value = "查询所有采购订单记录数据总条数接口", notes = "查询所有采购订单记录数据总条数", httpMethod = "POST", response = ResponseData.class)
    public ResultData selectAllPurchaseOrderCounts(@RequestBody @ApiParam(name ="Condition", value = " 状态/输入值,全查时可传空值，下拉框的key值为selectValue,输入框的key值为inputValue",
            required = true) Condition Condition){

        return ResponseData.success(1);
    }

    @ResponseBody
    @PostMapping("/selectAllPurchaseOrder")
    @ApiOperation(value = "查询全部采购订单记录接口", notes = "查询所有采购订单记录", httpMethod = "POST", response = ResponseData.class)
    public ResultData  selectAllPurchaseOrder(@RequestBody @ApiParam(name = "condition", value = "前端传递当前页码与每页显示商品数量，当前页码的key值为currentPage，页面大小的key值为perSize，", required = true) Condition condition){
       PurchaseOrderMain purchaseOrderMain = new PurchaseOrderMain();

       purchaseOrderMain.setPayStatus( 0);
       purchaseOrderMain.setPurchaseOrderMainId("123");
       purchaseOrderMain.setPurchaseOrderNumber("233");
       PurchaseOrderDetail purchaseOrderDetail =
               new PurchaseOrderDetail();
        Goods goods=new Goods();
        goods.setGoodsId("1");
        goods.setGoodsName("虎王坦克");
        goods.setGoodsDesc("重型坦克");
        goods.setGoodsMarketPrice((double) 34);
        goods.setGoodsOrderPrice((double) 345);
        purchaseOrderDetail.setGoodsId("1");
        purchaseOrderDetail.setGoods(goods);
        User user =new User();
        user.setUserId("1");
        user.setUsername("阿香");
        purchaseOrderMain.setUserId("1");
        purchaseOrderMain.setUser(user);
        purchaseOrderMain.setSupplierId("1");
        Supplier supplier= new Supplier();
        supplier.setSupplierId("1");
        supplier.setSupplierName("fdsffg");
        purchaseOrderMain.setSupplier(supplier);
        purchaseOrderMain.setPurchasePrice(234);
        purchaseOrderMain.setCreator("阿西吧");
        List<PurchaseOrderDetail> list1 =new ArrayList<>();
        list1.add(purchaseOrderDetail);
        purchaseOrderMain.setPurchaseOrderDetail(list1);
        purchaseOrderMain.setPayStatus(0);
        List<Object> list = new ArrayList<>();
        list.add(purchaseOrderMain);
        return ResponseData.success("success",list);
    }

    @ResponseBody
    @PostMapping("/selectPurchaseOrderByCondition")
    @ApiOperation(value = "条件查询采购订单记录接口", notes = "根据下拉框或输入的值查询，比如状态/输入值", httpMethod = "POST", response = ResponseData.class)
    public ResultData   selectPurchaseOrderByCondition(@RequestBody @ApiParam(name ="Condition", value = "前端传递当前页码与每页显示商品数量，当前页码的key值为currentPage，页面大小的key值为perSize， 条件为状态/输入值，下拉框的key值为selectValue,输入框的key值为inputValue",
            required = true) Condition Condition){
        PurchaseOrderMain purchaseOrderMain = new PurchaseOrderMain();
        purchaseOrderMain.setPayStatus( 0);
        purchaseOrderMain.setPurchaseOrderMainId("123");
        purchaseOrderMain.setPurchaseOrderNumber("233");
        PurchaseOrderDetail purchaseOrderDetail =
                new PurchaseOrderDetail();
        Goods goods=new Goods();
        goods.setGoodsId("1");
        goods.setGoodsName("虎王坦克");
        goods.setGoodsDesc("重型坦克");
        goods.setGoodsMarketPrice((double) 34);
        goods.setGoodsOrderPrice((double) 345);
        purchaseOrderDetail.setGoodsId("1");
        purchaseOrderDetail.setGoods(goods);
        User user =new User();
        user.setUserId("1");
        user.setUsername("阿香");
        purchaseOrderMain.setUserId("1");
        purchaseOrderMain.setUser(user);
        purchaseOrderMain.setSupplierId("1");
        Supplier supplier= new Supplier();
        supplier.setSupplierId("1");
        supplier.setSupplierName("fdsffg");
        purchaseOrderMain.setSupplier(supplier);
        purchaseOrderMain.setPurchasePrice(234);
        purchaseOrderMain.setCreator("阿西吧");
        List<PurchaseOrderDetail> list1 =new ArrayList<>();
        list1.add(purchaseOrderDetail);
        purchaseOrderMain.setPurchaseOrderDetail(list1);
        purchaseOrderMain.setPayStatus(0);
        List<Object> list = new ArrayList<>();
        list.add(purchaseOrderMain);
        return ResponseData.success("success",list);
    }

    @ResponseBody
    @PostMapping("/selectPurchaseOrderDetailById")
    @ApiOperation(value = "查询采购订单详情接口", notes = "根据采购订单主表id查询查询订单明细", httpMethod = "POST", response = ResponseData.class)
    public ResultData  selectPurchaseOrderDetailById(@RequestBody @ApiParam(name ="purchaseOrderMain", value = "这条记录的采购订单主表id，key值为purchaseOrderMainId",
            required = true) PurchaseOrderMain purchaseOrderMain){
        Goods goods=new Goods();
        goods.setGoodsId("1");
        goods.setGoodsName("虎王坦克");
        goods.setGoodsDesc("重型坦克");
        goods.setGoodsMarketPrice((double) 34);
        goods.setGoodsOrderPrice((double) 345);
        goods.setPurchaseCost((double) 34);
        PurchaseOrderDetail purchaseOrderDetail = new PurchaseOrderDetail();
        purchaseOrderDetail.setGoodsId("1");
        purchaseOrderDetail.setGoods(goods);
        purchaseOrderDetail.setPurchaseNumber("4356");
        List<PurchaseOrderDetail> list = new ArrayList<>();
        list.add(purchaseOrderDetail);
        purchaseOrderMain.setPurchaseOrderDetail(list);
        User user =new User();
        user.setUserId("1");
        user.setUsername("阿香");
        purchaseOrderMain.setUserId("1");
        purchaseOrderMain.setUser(user);
        purchaseOrderMain.setSupplierId("1");
        Supplier supplier= new Supplier();
        supplier.setSupplierId("1");
        supplier.setSupplierName("fdsffg");
        purchaseOrderMain.setSupplier(supplier);
        purchaseOrderMain.setPurchasePrice(234);
        purchaseOrderMain.setCreator("阿西吧");
        purchaseOrderMain.setDate(null);
        purchaseOrderMain.setGoodsStatus(0);
        purchaseOrderDetail.setPurchaseOrderNumber("d5435");
        purchaseOrderMain.setRemarks("卡顿");
        purchaseOrderDetail.setPurchaseOrderDetailId("1");

        return ResponseData.success(purchaseOrderDetail);
    }

    @ResponseBody
    @PostMapping("/purchaseOrderWarehousingById")
    @ApiOperation(value = "采购订单入库接口", notes = "根据采购订单主表id入库", httpMethod = "POST", response = ResponseData.class)
    public ResultData   purchaseOrderWarehousingById(@RequestBody @ApiParam(name ="warehousingOutRecordMain", value = "key值为出入库记录表相关数据的属性名，需要采购数",
            required = true) WarehousingOutRecordMain warehousingOutRecordMain){

        return ResponseData.success("success");
    }

    @ResponseBody
    @PostMapping("/addPurchaseOrderWarehousing")
    @ApiOperation(value = "新增采购订单接口", notes = "新增采购订单", httpMethod = "POST", response = ResponseData.class)
    public ResultData   addPurchaseOrderWarehousing(@Validated(PurchaseOrderFlag.class)@RequestBody @ApiParam(name ="purchaseOrderMain", value = "key值为采购订单主表和详情表增加的相关数据",
            required = true) PurchaseOrderMain purchaseOrderMain){

        return ResponseData.success("success");
    }

    @ResponseBody
    @PostMapping("/deletePurchaseOrde")
    @ApiOperation(value = "删除采购订单接口", notes = "根据采购订单主表id删除订单", httpMethod = "POST", response = ResponseData.class)
    public ResultData   deletePurchaseOrde(@RequestBody @ApiParam(name ="purchaseOrderMain", value = "这条记录的采购订单主表id，key值为purchaseOrderMainId",
            required = true) PurchaseOrderMain purchaseOrderMain){
        return ResponseData.success("success");
    }

    @ResponseBody
    @PostMapping("/selectAllPurchaseReturnGoodsCounts")
    @ApiOperation(value = "查询所有退货订单记录数据总条数接口", notes = "查询所有退货订单记录数据总条数", httpMethod = "POST", response = ResponseData.class)
    public ResultData selectAllPurchaseReturnGoodsCounts(@RequestBody @ApiParam(name ="Condition", value = "仓库/状态/输入值，全查时可传空值，下拉框的key值为selectValue,输入框的key值为inputValue",
            required = true) Condition Condition){

        return ResponseData.success(1);
    }

    @ResponseBody
    @PostMapping("/selectAllPurchaseReturnGoods")
    @ApiOperation(value = "查询全部退货订单记录接口", notes = "查询所有退货订单记录", httpMethod = "POST", response = ResponseData.class)
    public ResultData  selectAllPurchaseReturnGoods(@ApiParam(name = "condition", value = "前端传递当前页码与每页显示商品数量，当前页码的key值为currentPage，页面大小的key值为perSize，", required = true) Condition condition){
        PurchaseReturnGoodsMain purchaseReturnGoodsMain =
                new PurchaseReturnGoodsMain();
        purchaseReturnGoodsMain.setPurchaseReturnGoodsMainId("1");
        purchaseReturnGoodsMain.setPurchaseReturnNo("2345");
        purchaseReturnGoodsMain.setReturnGoodsStatus( 1l);
        PurchaseReturnGoodsDetail purchaseReturnGoodsDetail =
                new PurchaseReturnGoodsDetail();
        purchaseReturnGoodsMain.setCreator("阿梅");
        purchaseReturnGoodsMain.setDate(null);
        purchaseReturnGoodsMain.setSupplierId("1");
        Supplier supplier= new Supplier();
        supplier.setSupplierId("1");
        supplier.setSupplierName("fdsffg");
        purchaseReturnGoodsMain.setSupplier(supplier);
        purchaseReturnGoodsMain.setRepositoryId("1");
        Repository repository = new Repository();
        repository.setRepositoryId("1");
        repository.setRepositoryName("aman");
        purchaseReturnGoodsMain.setRepository(repository);
        purchaseReturnGoodsMain.setTotalcCount(55);
        purchaseReturnGoodsMain.setHandledBy("AMX");
        List<Object> list = new ArrayList<>();
        list.add(purchaseReturnGoodsMain);
        return ResponseData.success("success",list);
    }
    @ResponseBody
    @PostMapping("/ selectPurchaseReturnGoodsByCondition")
    @ApiOperation(value = "条件查询退货订单记录接口", notes = "根据下拉框或输入的值查询，比如仓库/状态/输入值", httpMethod = "POST", response = ResponseData.class)
    public ResultData    selectPurchaseReturnGoodsByCondition(@RequestBody @ApiParam(name ="Condition", value = "前端传递当前页码与每页显示商品数量，当前页码的key值为currentPage，页面大小的key值为perSize，条件为仓库/状态/输入值，下拉框的key值为selectValue,输入框的key值为inputValue",
            required = true) Condition Condition){
        PurchaseReturnGoodsMain purchaseReturnGoodsMain =
                new PurchaseReturnGoodsMain();
        purchaseReturnGoodsMain.setPurchaseReturnGoodsMainId("1");
        purchaseReturnGoodsMain.setPurchaseReturnNo("2345");
        purchaseReturnGoodsMain.setReturnGoodsStatus( 1l);
        PurchaseReturnGoodsDetail purchaseReturnGoodsDetail =
                new PurchaseReturnGoodsDetail();
        purchaseReturnGoodsMain.setCreator("阿梅");
        purchaseReturnGoodsMain.setDate(null);
        purchaseReturnGoodsMain.setSupplierId("1");
        Supplier supplier= new Supplier();
        supplier.setSupplierId("1");
        supplier.setSupplierName("fdsffg");
        purchaseReturnGoodsMain.setSupplier(supplier);
        purchaseReturnGoodsMain.setRepositoryId("1");
        Repository repository = new Repository();
        repository.setRepositoryId("1");
        repository.setRepositoryName("aman");
        purchaseReturnGoodsMain.setRepository(repository);
        purchaseReturnGoodsMain.setTotalcCount(55);
        purchaseReturnGoodsMain.setHandledBy("AMX");
        List<Object> list = new ArrayList<>();
        list.add(purchaseReturnGoodsMain);
        return ResponseData.success("success",list);
    }

    @ResponseBody
    @PostMapping("/selectPurchaseReturnGoodsDetail")
    @ApiOperation(value = "查询退货订单详情接口", notes = "根据退货订单主表id查询查询订单明细", httpMethod = "POST", response = ResponseData.class)
    public ResultData  selectPurchaseReturnGoodsDetail(@RequestBody @ApiParam(name ="purchaseReturnGoodsMain", value = "相关数据的退货订单主表id，key值为purchaseReturnGoodsMainId",
            required = true) PurchaseReturnGoodsMain  purchaseReturnGoodsMain){
        purchaseReturnGoodsMain.setCreator("阿梅");
        purchaseReturnGoodsMain.setDate(null);
        purchaseReturnGoodsMain.setSupplierId("1");
        Supplier supplier= new Supplier();
        supplier.setSupplierId("1");
        supplier.setSupplierName("fdsffg");
        purchaseReturnGoodsMain.setSupplier(supplier);
        purchaseReturnGoodsMain.setRepositoryId("1");
        Repository repository = new Repository();
        repository.setRepositoryId("1");
        repository.setRepositoryName("aman");
        purchaseReturnGoodsMain.setRepository(repository);
        purchaseReturnGoodsMain.setTotalcCount(55);
        purchaseReturnGoodsMain.setHandledBy("AMX");
        purchaseReturnGoodsMain.setRepositoryId("1");
        purchaseReturnGoodsMain.setReturnGoodsStatus( 0l);
        purchaseReturnGoodsMain.setPurchaseReturnNo("4356");
        purchaseReturnGoodsMain.setPurchaseOrderNumber("5346");
        PurchaseReturnGoodsDetail purchaseReturnGoodsDetail =
                new PurchaseReturnGoodsDetail();
        purchaseReturnGoodsDetail.setGoodsId("1");
        Goods goods=new Goods();
        goods.setGoodsId("1");
        goods.setGoodsName("虎王坦克");
        goods.setGoodsDesc("重型坦克");
        goods.setGoodsMarketPrice((double) 345);
        goods.setGoodsOrderPrice((double) 345);
        goods.setPurchaseCost((double) 345);
        purchaseReturnGoodsDetail.setGoods(goods);
        purchaseReturnGoodsDetail.setPurchaseReturnPrice((double) 324);
        purchaseReturnGoodsDetail.setReturnGoodsNumber(43);
        List<PurchaseReturnGoodsDetail>  list=new ArrayList<>();
        list.add(purchaseReturnGoodsDetail);
        purchaseReturnGoodsMain.setPurchaseReturnGoodsDetail(list);
        purchaseReturnGoodsMain.setTotalcCount(324);
        purchaseReturnGoodsMain.setRemarks("fsf");
        return ResponseData.success(purchaseReturnGoodsMain);
    }

    @ResponseBody
    @PostMapping("/selectPurchaseReturnGoodsRecord")
    @ApiOperation(value = "查询退款记录接口", notes = "根据退货订单号查询退款记录", httpMethod = "POST", response = ResponseData.class)
    public ResultData  selectPurchaseReturnGoodsRecord(@RequestBody @ApiParam(name ="purchaseReturnGoodsRecord", value = "相关数据的退货订单主表id，key值为purchaseReturnGoodsMainId",
            required = true) PurchaseReturnGoodsMain purchaseReturnGoodsMain){
       RefundRecord refundRecord =new RefundRecord();
       refundRecord.setPurchaseReturnGoodsMainId("1");
       refundRecord.setRefundAccount("阿帕奇");
       refundRecord.setRefundAmount(424);
       refundRecord.setRefundCause("采购退货");
       refundRecord.setRefundRecordId(UUID.randomUUID().toString());
       refundRecord.setRefundStatus(0);
       refundRecord.setRefundTime(null);

        return ResponseData.success(refundRecord);
    }
    @ResponseBody
    @PostMapping("/selectPurchasePayRecord")
    @ApiOperation(value = "查询付款记录接口", notes = "根据采购订单主表id查询付款记录", httpMethod = "POST", response = ResponseData.class)
    public ResultData  selectPurchasePayRecord(@RequestBody @ApiParam(name ="purchaseOrderMain", value = "这条记录的采购订单主表id，key值为purchaseOrderMainId",
            required = true) PurchaseOrderMain purchaseOrderMain){
        PaymentRecords paymentRecords =new PaymentRecords();
       paymentRecords.setPurchaseReturnGoodsMainId(UUIDUtil.getId());
       paymentRecords.setPayAccountId("amanda");
       paymentRecords.setPaymentStatus(0);
       paymentRecords.setPayPerson("希特勒");

        return ResponseData.success(paymentRecords);
    }
    @ResponseBody
    @PostMapping("/addPurchaseReturnGoodsOrder")
    @ApiOperation(value = "新增退货记录接口", notes = "增加退货记录", httpMethod = "POST", response = ResponseData.class)
    public ResultData  addPurchaseReturnGoodsOrder(@RequestBody @ApiParam(name ="purchaseReturnGoodsMain", value = "key值为添加的采购退货详情表的相关数据的属性名",
            required = true) PurchaseReturnGoodsMain  purchaseReturnGoodsMain){
        //操作采购订单表
        //操作退货记录详情表
        return ResponseData.success("success");
    }



    @PostMapping("/selectGoodsByFirstSelectValue")
    @ApiOperation(value = "第一个选择查询商品接口", notes = "根据第一个下拉框选择的商品类型查询对应类型的商品", httpMethod = "POST", response = ResponseData.class)
    public ResultData selectGoodsByFirstSelectValue(
            @RequestBody @ApiParam(name = "condition", value = "前端在下拉框选择商品类型，key值为selectValue", required = true) Condition condition){
        List<Goods> goodsList = new ArrayList<>();
        Goods goods = new Goods();
        goods.setGoodsId("9f5adfb94c1f49ad9c5a894401259e9e");
        goods.setGoodsName("哇哈哈 每瓶200ml");
        goods.setGoodsOrderPrice(1.75);
        goods.setGoodsMarketPrice(2.00);
        goods.setGoodsImgId("45b9a777c5eb4bfc966599f38bea92c3");
        goods.setGoodsTypeId("9272fffd49234f29a739b69104949538");
        goods.setGoodsUnitId("aeac58fd00ea4d4483a18ecc69476518");
        goods.setReferenceCostPrice(1.50);
        goods.setInventoryCost(0.01);
        goods.setPurchaseCost(1.30);
        goods.setGoodsDesc("好喝的酸甜饮品");
        goods.setGoodsSpecifications("500ml/瓶");
        goodsList.add(goods);
        return ResponseData.success(goodsList);
    }

    @PostMapping("/selectGoodsBySecondSelectValue")
    @ApiOperation(value = "第二个选择查询商品接口", notes = "根据第二个下拉框选择的商品类型查询对应类型的商品", httpMethod = "POST", response = ResponseData.class)
    public ResultData selectGoodsBySecondSelectValue(
            @RequestBody @ApiParam(name = "condition", value = "前端在下拉框选择商品类型，key值为selectValue", required = true) Condition condition){
        List<Goods> goodsList = new ArrayList<>();
        Goods goods = new Goods();
        goods.setGoodsId("9f5adfb94c1f49ad9c5a894401259e9e");
        goods.setGoodsName("哇哈哈 每瓶200ml");
        goods.setGoodsOrderPrice(1.75);
        goods.setGoodsMarketPrice(2.00);
        goods.setGoodsImgId("45b9a777c5eb4bfc966599f38bea92c3");
        goods.setGoodsTypeId("9272fffd49234f29a739b69104949538");
        goods.setGoodsUnitId("aeac58fd00ea4d4483a18ecc69476518");
        goods.setReferenceCostPrice(1.50);
        goods.setInventoryCost(0.01);
        goods.setPurchaseCost(1.30);
        goods.setGoodsDesc("好喝的酸甜饮品");
        goods.setGoodsSpecifications("500ml/瓶");
        goodsList.add(goods);
        return ResponseData.success(goodsList);
    }


    @PostMapping("/insertGoodsInfo")
    @ApiOperation(value = "新增商品接口", notes = "新增商品信息", httpMethod = "POST", response = ResponseData.class)
    public ResultData insertGoodsInfo(@RequestBody @ApiParam(name = "goods", value = "添加的商品信息，key值为添加的商品信息", required = true) Goods goods){
        return ResponseData.success("新增成功！");
    }

    @PostMapping("/updateGoodsInfo")
    @ApiOperation(value = "修改商品接口", notes = "修改商品信息", httpMethod = "POST", response = ResponseData.class)
    public ResultData updateGoodsInfo(@RequestBody @ApiParam(name = "goods", value = "修改的商品信息，key值为修改的商品信息", required = true) Goods goods){
        return ResponseData.success("修改成功！");
    }

    @PostMapping("/deleteGoods")
    @ApiOperation(value = "删除商品接口", notes = "删除商品", httpMethod = "POST", response = ResponseData.class)
    public ResultData deleteGoods(@RequestBody @ApiParam(name = "goods", value = "删除商品，key值为删除商品的id", required = true) Goods goods){
        return ResponseData.success("删除成功！");
    }

    @PostMapping("/selectGoodsType")
    @ApiOperation(value = "查询商品类型接口", notes = "查询商品类型", httpMethod = "POST", response = ResponseData.class)
    public ResultData selectGoodsType(){
        List<GoodsType> goodsTypeList = new ArrayList<>();
        GoodsType goodsType1 = new GoodsType();
        goodsType1.setGoodsTypeId("12425atahg365351316");
        goodsType1.setGoodsTypeName("母婴");
        GoodsType goodsType2 = new GoodsType();
        goodsType2.setGoodsTypeId("1sfag36526242455");
        goodsType2.setGoodsTypeName("电器");
        goodsTypeList.add(goodsType1);
        goodsTypeList.add(goodsType2);
        return ResponseData.success(goodsTypeList);
    }
    @PostMapping("/insertGoodsType")
    @ApiOperation(value = "新增商品类型接口", notes = "新增商品类型", httpMethod = "POST", response = ResponseData.class)
    public ResultData insertGoodsType(@RequestBody @ApiParam(name = "goods", value = "添加的商品类型信息，key值为添加的商品类型信息", required = true) GoodsType goodsType){
        return ResponseData.success("新增成功！");
    }

    @PostMapping("/updateGoodsType")
    @ApiOperation(value = "修改商品类型接口", notes = "修改商品类型", httpMethod = "POST", response = ResponseData.class)
    public ResultData updateGoodsType(@RequestBody @ApiParam(name = "goods", value = "修改的商品类型信息，key值为修改的商品类型信息", required = true) GoodsType goodsType){
        return ResponseData.success("修改成功！");
    }

    @PostMapping("/deleteGoodsType")
    @ApiOperation(value = "删除商品类型接口", notes = "删除商品类型", httpMethod = "POST", response = ResponseData.class)
    public ResultData deleteGoodsType(@RequestBody @ApiParam(name = "goods", value = "删除商品类型，key值为删除商品类型的id", required = true) GoodsType goodsType){
        return ResponseData.success("删除成功！");
    }

    @PostMapping("/selectGoodsUnit")
    @ApiOperation(value = "查询商品计量单位接口", notes = "查询商品计量单位", httpMethod = "POST", response = ResponseData.class)
    public ResultData selectGoodsUnit(){
        List<GoodsType> goodsTypeList = new ArrayList<>();
        GoodsType goodsType1 = new GoodsType();
        goodsType1.setGoodsTypeId("12425atahg365351316");
        goodsType1.setGoodsTypeName("个");
        GoodsType goodsType2 = new GoodsType();
        goodsType2.setGoodsTypeId("1sfag36526242455");
        goodsType2.setGoodsTypeName("瓶");
        goodsTypeList.add(goodsType1);
        goodsTypeList.add(goodsType2);
        return ResponseData.success(goodsTypeList);
    }
    @PostMapping("/insertGoodsUnit")
    @ApiOperation(value = "新增商品计量单位接口", notes = "新增商品计量单位", httpMethod = "POST", response = ResponseData.class)
    public ResultData insertGoodsUnit(@RequestBody @ApiParam(name = "goods", value = "添加的商品计量单位信息，key值为添加的商品计量单位信息", required = true) GoodsUnit goodsUnit){
        return ResponseData.success("新增成功！");
    }

    @PostMapping("/updateGoodsUnit")
    @ApiOperation(value = "修改商品计量单位接口", notes = "修改商品计量单位", httpMethod = "POST", response = ResponseData.class)
    public ResultData updateGoodsUnit(@RequestBody @ApiParam(name = "goods", value = "修改的商品计量单位信息，key值为修改的商品计量单位信息", required = true) GoodsUnit goodsUnit){
        return ResponseData.success("修改成功！");
    }

    @PostMapping("/deleteGoodsUnit")
    @ApiOperation(value = "删除商品计量单位接口", notes = "删除商品计量单位", httpMethod = "POST", response = ResponseData.class)
    public ResultData deleteGoodsUnit(@RequestBody @ApiParam(name = "goods", value = "删除商品计量单位，key值为删除商品计量单位的id", required = true) GoodsUnit goodsUnit){
        return ResponseData.success("删除成功！");
    }
}
